//
//  SEGDoorManagerDelegate.h
//  YYKitDemo
//
//  Created by 刘山 on 2017/11/10.
//  Copyright © 2017年 Sam. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol SEGDoorManagerDelegate <NSObject>
@optional
/**
 *  开始开门操作
 */
- (void)managerBeginOpenDoorAction;
/**
 *  开门成功
 */
- (void)managerOpenDoorSuccessWithShouldShowTips:(BOOL)shouldShowTips;
/**
 *  开门失败 [会统计上报]
 */
- (void)managerOpenDoorFailedWithMessage:(NSString *)message;

/// 开门其他异常状态 [蓝牙未开启/未授权/不支持的失败类型&初始化失败]
/// @param message 提示消息
- (void)managerOpenDoorBluetoothFailedWithMessage:(NSString *)message;
 
/**
 *  开门失败(网络门开门失败处理)
 */
- (void)managerOpenDoorFailedWithResultDict:(NSString *)resultDict error:(NSError *)error;

/**
 *  开门结果
 */
- (void)managerOpenDoorResult:(NSDictionary *)dict;

/**
 *  二维码开门回调
 */
- (void)managerShowQRCodewithQRCodeString:(NSString *)qRCodeString doorName:(NSString *)doorName;

@end
